package com.bohua.Car.admin.service;

import com.bohua.Car.admin.common.Lay;
import com.bohua.Car.admin.common.Msg;
import com.bohua.Car.admin.common.Pie;
import com.bohua.Car.admin.entity.Cars;

import java.util.List;

public interface CarsService {
    /**
     * 增删改
     * @param cars
     * @return
     */
    Msg addCars(Cars cars);

    Msg updateCars(Cars cars);

    Msg delCars(Cars cars);

    /**
     * 查询
     * @param cars
     * @param page
     * @param limit
     * @return
     */

    Lay getAll(Cars cars,Integer page,Integer limit);

    List<Cars> getselect(Cars cars);

    List<Pie> Pie();

}
